<?php 
namespace app\home\command;

use think\console\Command;
use think\console\Input;
use think\console\Output;
use think\Db;

class Test extends Command
{
    protected function configure()
    {
        $this->setName('test')->setDescription('Here is the remark ');
    }

    protected function execute(Input $input, Output $output)
    { 

    	// for ($i=0; $i <1000 ; $i++) { 


    	// 	Db::execute('insert into user (nickname) values (?)',['学并思'.$i]);
    	// 	if($i%100==0){
    	// 		echo "insatll:".$i.PHP_EOL;
    	// 	}
    	// }
    	// 
    	vendor ('phpQuery.phpQuery');

	        \phpQuery::newDocumentFile('http://www.thinkphp.cn/topic/49480.html'); 
	      $artlist = pq(".detail-hd .t-head h2")->html();

	      var_dump($artlist); 
    }
}
 ?>